﻿$(function($) {
function initPorcessAddDlg() {

		var processName = $("#process_name").jqxInput({
			placeHolder: "",
			height: 22,
			width: 95,
			minLength: 1
		});
		var processDesc = $("#process_desc").jqxInput({
			placeHolder: "",
			height: 22,
			width: 95
		});

		function _call() {

		}
		//=====================================================================
 
		var measure_sys_dlg = $('#measure_sys_dlg').jqxWindow({

			height: 185,
			width: 195,
			resizable: false,
			isModal: true,
			modalOpacity: 0.3,
			theme: theme,
			autoOpen: true,
			okButton: $('#measure_sys_dlg #ok'),
			cancelButton: $('#measure_sys_dlg #cancel'),
			initContent: function() {
				$('#measure_sys_dlg #ok').jqxButton({
					theme: theme,
					width: '65px'
				});
				$('#measure_sys_dlg #cancel').jqxButton({
					theme: theme,
					width: '65px'
				});
				$('#process_add_dlg #ok').focus();


			}
		});
		$('#measure_sys_dlg #ok').off().on("click", function(event) {

			process_add_dlg.processName = processName.val();
			// alert(beginNo);

			process_add_dlg.processDesc = processDesc.val();
			_call(process_add_dlg);

		});
		measure_sys_dlg.show = function(callBack) {
			$(this).jqxWindow("open");
			_call = callBack
		}
		return measure_sys_dlg;
	}
});
